/**
 * 
 * 个人信息界面
 */
import GViewBase from "../../../Core/GView/GViewBase";
import { AudioMgr } from "../../../Core/Manager/AudioMgr";
import { VIEW_ID } from "../../Common/UI";
import GameMgr from "../../Logic/GameMgr";


const { ccclass, property } = cc._decorator;

@ccclass
export default class UserInfoView extends GViewBase {
    @property(cc.Slider)
    slider_music: cc.Slider = null;
    @property(cc.Slider)
    slider_effect: cc.Slider = null;

    onGStart() {

    }

    protected onSetClick() {

        GameMgr.jumpToMgr.jumpGoTo(VIEW_ID.setting);
    }

    protected onCodeClick() {
        GameMgr.jumpToMgr.jumpGoTo(VIEW_ID.comonTipView, 1);
    }

    protected onNameClick() {
        GameMgr.jumpToMgr.jumpGoTo(VIEW_ID.comonTipView, 2);
    }

    protected onExitClick() {
        cc.game.end();
    }
}
